import request from '@/utils/request'

export function listPage(data) {
  return request.post('buss/pricingMaterial/paging', data)
}

export function importExcel(data) {
  return request.post('buss/pricingMaterial/importExcel', data)
}

export function exportExcel(data) {
  return request({
    method: 'post',
    url: 'buss/pricingMaterial/exportExcel',
    data: data,
    responseType: 'blob'
  })
}

export function getOne(id) {
  return request.get('buss/pricingMaterial/getOne?id=' + id)
}

export function del(ids) {
  return request({
    url: 'buss/pricingMaterial/del',
    method: 'post',
    data: ids
  })
}
export function submit(data) {
  return request({
    url: 'buss/pricingMaterial/submit',
    method: 'post',
    data
  })
}


export function resubmit(data) {
  return request({
    url: 'buss/pricingMaterial/resubmit',
    method: 'post',
    data
  })
}

export default {
  listPage,
  importExcel,
  exportExcel,
  del,
  getOne,
  submit,
  resubmit
}
